package com.heima.model.wemedia.dtos;

import lombok.Data;

/**
 * @author HNCheng
 * @version 1.0
 * @since 2023/8/2 9:21
 */
@Data
public class NewsAuthDto {
    private Integer id;
    private String msg;
    private Integer page;
    private Integer size;
    private Short status;
    private String title;

    public void checkParam() {
        if (this.page == null || this.page < 0) {
            setPage(1);
        }
        if (this.size == null || this.size < 0 || this.size > 100) {
            setSize(10);
        }
    }
}
